package com.ruoyi.xst.service.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.xst.mapper.MeetingUserMapper;
import com.ruoyi.xst.domain.MeetingUser;
import com.ruoyi.xst.service.IMeetingUserService;

/**
 * 会议名单Service业务层处理
 * 
 * @author Rambo
 * @date 2024-11-21
 */
@Service
public class MeetingUserServiceImpl implements IMeetingUserService 
{
    @Autowired
    private MeetingUserMapper meetingUserMapper;

    /**
     * 查询会议名单
     * 
     * @param id 会议名单主键
     * @return 会议名单
     */
    @Override
    public MeetingUser selectMeetingUserById(Long id)
    {
        return meetingUserMapper.selectMeetingUserById(id);
    }

    /**
     * 查询会议名单列表
     * 
     * @param meetingUser 会议名单
     * @return 会议名单
     */
    @Override
    public List<MeetingUser> selectMeetingUserList(MeetingUser meetingUser)
    {
        return meetingUserMapper.selectMeetingUserList(meetingUser);
    }

    /**
     * 新增会议名单
     * 
     * @param meetingUser 会议名单
     * @return 结果
     */
    @Override
    public int insertMeetingUser(MeetingUser meetingUser)
    {
        meetingUser.setCreateTime(DateUtils.getNowDate());
        return meetingUserMapper.insertMeetingUser(meetingUser);
    }

    /**
     * 修改会议名单
     * 
     * @param meetingUser 会议名单
     * @return 结果
     */
    @Override
    public int updateMeetingUser(MeetingUser meetingUser)
    {
        return meetingUserMapper.updateMeetingUser(meetingUser);
    }

    /**
     * 批量删除会议名单
     * 
     * @param ids 需要删除的会议名单主键
     * @return 结果
     */
    @Override
    public int deleteMeetingUserByIds(Long[] ids)
    {
        return meetingUserMapper.deleteMeetingUserByIds(ids);
    }

    /**
     * 删除会议名单信息
     * 
     * @param id 会议名单主键
     * @return 结果
     */
    @Override
    public int deleteMeetingUserById(Long id)
    {
        return meetingUserMapper.deleteMeetingUserById(id);
    }
}
